package com.chalk.model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author glq
 * @since 2020-12-16
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_venue_comment")
@ApiModel(value="VenueComment对象", description="")
public class VenueComment implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "场馆评论表")
    @TableId(value = "vc_id", type = IdType.AUTO)
    @JsonProperty("vcId")
    private Integer vcId;

    @ApiModelProperty(value = "场馆评论内容")
    @JsonProperty("vcContent")
    private String vcContent;

    @ApiModelProperty(value = "评分")
    @JsonProperty("vcScore")
    private BigDecimal vcScore;

    @ApiModelProperty(value = "评论图片")
    @JsonProperty("vcImg")
    private String vcImg;

    @ApiModelProperty(value = "1文字评论 2图片评论")
    @JsonProperty("vcType")
    private Integer vcType;

    @ApiModelProperty(value = "用户id")
    @JsonProperty("memberId")
    private String memberId;

    @ApiModelProperty(value = "场馆id")
    @JsonProperty("venueId")
    private Integer venueId;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0未删除 1已删除")
    @JsonProperty("isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;


    @JsonProperty("venueName")
    @TableField(exist = false)
    private String venueName;

    @JsonProperty("nickName")
    @TableField(exist = false)
    private String nickName;

}
